package com.source.quartz.config;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import java.util.Date;
//public class QuartzSimpleTask extends QuartzJobBean {
public class QuartzSimpleTask implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
   //    System.out.println(jobExecutionContext.getCalendar());
        System.out.println("quartz简单的定时任务执行时间 com.source.security.config.QuartzSimpleTask："+new Date().toLocaleString());
    }
    /*@Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("quartz简单的定时任务执行时间："+new Date().toLocaleString());
    }*/
}